{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "from utils import *\n",
    "\n",
    "import numpy as np\n",
    "import matplotlib.pyplot as plt \n",
    "from prettytable import PrettyTable\n",
    "import matplotlib\n",
    "\n",
    "import torch \n",
    "from torch import nn\n",
    "\n",
    "matplotlib.rcParams[\"font.family\"] = \"Times New Roman\"\n",
    "matplotlib.rcParams[\"legend.fontsize\"] = 16\n",
    "matplotlib.rcParams[\"xtick.major.size\"] = 12\n",
    "matplotlib.rcParams[\"ytick.major.size\"] = 12"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# get data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "meta data has been dumped at \u001b[32m./data/meta_id_00.json\u001b[0m\n",
      "+------------+-----------+\n",
      "| train size | test size |\n",
      "+------------+-----------+\n",
      "|    1133    |    285    |\n",
      "+------------+-----------+\n"
     ]
    }
   ],
   "source": [
    "get_meta_data(\n",
    "    meta_data_file=\"./data/meta_id_00.json\",\n",
    "    train_ratio=0.8,\n",
    "    n_path=\"e:/DataSet/MIMII/id_00/abnormal/\",\n",
    "    p_path=\"e:/DataSet/MIMII/id_00/normal/\"\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "interpreter": {
   "hash": "4ce0e62306dd6a5716965d4519ada776f947e6dfc145b604b11307c10277ef29"
  },
  "kernelspec": {
   "display_name": "Python 3.7.6 64-bit",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.6"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
